<?php

namespace App\Http\Controllers;

use DB;
use Illuminate\Http\Request;
use Validator;

use Ptime3\Functions\Queue;

class CampusController extends Controller
{
    function index(){

        $campusResult = DB::table("cp_campus")
          ->select("id","name")
          ->where("is_open",true)
          ->orderBy("id","ASC")
          ->get();

        Queue::put("restapi",["get","campus","campus/1/system",[]]);

        return $this::jsonResponse(false,$campusResult);
    }

}